/*
 * Before compilation and execution, understand what could be the output of program
 * Program demostrates what could be happen when pointer assigned to the different type of variable.
 */

#include <stdio.h>

int main()
{
	char c, **cc;
	int i;
	long l;
	float f;

	c = 'Z';
	i = 1000;
	l = 77777;
	f = 3.14;

	cc = &c;
	printf("c = %c, cc = %u\n", *cc, cc);

	cc = &i;
	printf("i = %d, cc = %u\n", *cc, cc);

	cc = &l;
	printf("l = %ld, cc = %u\n", *cc, cc);

	cc = &f;
	printf("f = %f, cc = %u\n", *cc, cc);

	return 0;
}
